<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Userinfo extends MY_Controller{
	function __construct(){
		parent::__construct();
	}

	public function index(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/basic');
		$this->load->view('userInfo/footer');
	}

	public function details(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/details');
		$this->load->view('userInfo/footer');
	}
	public function interests(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/interests');
		$this->load->view('userInfo/footer');
	}
	public function education(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/education');
		$this->load->view('userInfo/footer');
	}
	public function career(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/career');
		$this->load->view('userInfo/footer');
	}
	public function portrait(){
		$userId = $this->get_user_id();
		$userName = $this->UsersModel->get_name_by_id($userId);
		$data = array(
			'userName' => $userName
		);
		$this->load->view('userInfo/header',$data);
		$this->load->view('userInfo/portrait');
		$this->load->view('userInfo/footer');
	}
}